package com.witframework.dynoengine.render;

import com.witframework.dynoengine.model.WitMetaColumn;

public class ColumnComparator implements java.util.Comparator<WitMetaColumn>{
	public int compare(WitMetaColumn c1, WitMetaColumn c2) {	
		if(c1.getDisplaySort()!=null&&c1.getDisplaySort()!=null) 
			return c1.getDisplaySort()-c2.getDisplaySort();
		else if(c1.getDisplaySort()!=null)
			return 1;
		else if(c2.getDisplaySort()!=null)
			return -1;
		else
			return 0;
			
	}
}
